<?php
    require 'crud/CustomSecurity.class.php';
    require 'crud/Users.class.php';
    require 'common/Utility.php';
    require 'db/configuration.php';
    session_start();
    loginCheck();
    loadDB();
    include_once("js/ajax/agent.php");
	$agent->init();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html lang="bg">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
    <link rel="stylesheet" type="text/css" href="css/page.css" />
    <link rel="stylesheet" type="text/css" href="css/main.css" />
    <link rel="stylesheet" type="text/css" href="css/generalProduct.css" />
    <link rel="stylesheet" type="text/css" href="css/add-product.css" />
    
    <script type="text/javascript" src="js/user-settings.js"></script>

	<title>Настройки</title>
	<meta name="author" content="Dimtiar Giormov">
</head>
    <body>
        	<div id="add-product">
    			<div id="add-product-left">
    				<ol>
    					<li>стара парола:</li>
    					<li>нова парола:</li>
    					<li>повтори новата парола:</li>
    					<li><input class="table-submit" type="button" value="Промени паролата" onclick="submitPasswordChange();"></li>
    				</ol>
    			</div>  
    			<div id="add-product-right">
    				<ol>
    					<li><input class="table-input" type="password" id="oldpass" name="opass" onkeyup="validatePass();"><div id="messageOldPass"></div></li>
    					<li><input class="table-input" type="password" id="newpass" name="newpass" onkeyup="matchPass();"><div id="messageNewPass"></div></li>
    					<li><input class="table-input" type="password" id="rnewpass" name="rnewpass" onkeyup="matchPass();"><div id="messageRNewPass"></div></li>
					</ol>
				</div>
		</div>
    </body>
</html>